﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading;

namespace CSharpProj.test
{
    public class ThreadUtil
    {
        public static void Start(Action action)
        {
            Create(action).Start();
        }

        public static Thread Create(Action action)
        {
            return new Thread(new ThreadStart(() =>
            {
                try
                {
                    action();
                }
                catch (Exception ex)
                {
                }
            }));
        }
    }
}
